// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import 'lib-flexible/flexible'

// 引入Mint-UI组件
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

import iView from 'iview';
import 'iview/dist/styles/iview.css';

Vue.use(iView);

Vue.use(MintUI)

//  引入 mui-ui 组件
// import "../src/lib/css/mui.min.css"

// 引入axios
import axios from 'axios'
axios.defaults.withCredentials = false;

import moment from 'moment/moment'
Vue.filter('moment', function(value, formatString) {
    formatString = formatString || 'YYYY-MM-DD HH:mm:ss';
    return moment(value).format(formatString); // value可以是普通日期 20170723
    // return moment.unix(value).format(formatString); // 这是时间戳转时间
});
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})